package br.ucb.sacop.bean;

import java.io.Serializable;

public class TurmaShort implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer turmaId;
	private String nomeDisciplina;
	private String senha;
	
	
	
	public TurmaShort(Integer turmaId, String nomeDisciplina, String senha) {
		super();
		this.turmaId = turmaId;
		this.nomeDisciplina = nomeDisciplina;
		this.senha = senha;
	}

	public TurmaShort(){
		
	}
	
	public String getSenha() {
		return senha;
	}

	public void setSenha(String senha) {
		this.senha = senha;
	}

	public Integer getTurmaId() {
		return turmaId;
	}
	public void setTurmaId(Integer turmaId) {
		this.turmaId = turmaId;
	}
	public String getNomeDisciplina() {
		return nomeDisciplina;
	}
	public void setNomeDisciplina(String nomeDisciplina) {
		this.nomeDisciplina = nomeDisciplina;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((nomeDisciplina == null) ? 0 : nomeDisciplina.hashCode());
		result = prime * result + ((turmaId == null) ? 0 : turmaId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TurmaShort other = (TurmaShort) obj;
		if (nomeDisciplina == null) {
			if (other.nomeDisciplina != null)
				return false;
		} else if (!nomeDisciplina.equals(other.nomeDisciplina))
			return false;
		if (turmaId == null) {
			if (other.turmaId != null)
				return false;
		} else if (!turmaId.equals(other.turmaId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "TurmaShort [turmaId=" + turmaId + ", nomeDisciplina="
				+ nomeDisciplina + "]";
	}
	
	

}
